package com.agileai.portal.controller.mobile;

import com.agileai.domain.DataParam;
import com.agileai.hotweb.controller.core.StandardEditHandler;
import com.agileai.hotweb.domain.FormSelectFactory;
import com.agileai.portal.bizmoduler.mobile.AppModuleConfigManage;

public class AppModuleConfigManageEditHandler
        extends StandardEditHandler {
    public AppModuleConfigManageEditHandler() {
        super();
        this.listHandlerClass = AppModuleConfigManageListHandler.class;
        this.serviceId = buildServiceId(AppModuleConfigManage.class);
    }

    protected void processPageAttributes(DataParam param) {
        setAttribute("AC_GROUP",
                     FormSelectFactory.create("AW_GROUP")
                                      .addSelectedValue(getOperaAttributeValue("AC_GROUP",
                                                                               "default")));
        setAttribute("AC_VAILD",
                FormSelectFactory.create("SYS_VALID_TYPE")
                                 .addSelectedValue(getOperaAttributeValue("AC_VAILD",
                                                                          "1")));
    }
    
    protected AppModuleConfigManage getService() {
        return (AppModuleConfigManage) this.lookupService(this.getServiceId());
    }
}
